﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using TCC.WCFService.App_Data;

namespace TCC.WCFService.Model
{
    [DataContract]
    public class ComprasEntity
    {
        [DataMember]
        public int ID { get; set; }
        [DataMember]
        public int IdPessoa { get; set; }
        [DataMember]
        public int IdFormaPagamento { get; set; }
        [DataMember]
        public DateTime DataCompra { get; set; }
        [DataMember]
        public Nullable<DateTime> DataEntrega { get; set; }
        [DataMember]
        public Nullable<decimal> ValorMercadoria { get; set; }
        [DataMember]
        public Nullable<decimal> ValorImpostos { get; set; }
        [DataMember]
        public Nullable<decimal> ValorDesconto { get; set; }
        [DataMember]
        public Nullable<decimal> ValorTotalCompra { get; set; }

        [DataMember]
        public PessoasEntity Pessoas { get; set; }
        [DataMember]
        public FormasPagamentoEntity FormasPagamento { get; set; }
        [DataMember]
        public List<ItensCompra> ItensCompra { get; set; }

    }
}